﻿using System;

using BizElements.BusinessLayer;

namespace BizElements.Web
{
    /// <summary>
    /// Specifies mode a control is exercising when accessing data stored in business objects.
    /// </summary>
    public enum FieldAccessMode
    {
        #region Enumerated values.

        /// <summary>
        /// Control will automatically determine access mode based on <see cref="IBindableField.IsReadOnly"/> value.
        /// </summary>
        Automatic,

        /// <summary>
        /// Control may change the data stored in business object.
        /// </summary>
        Edit,

        /// <summary>
        /// Control only displays data stored in business object.
        /// </summary>
        ReadOnly

        #endregion
    }
}
